package com.woniuxy.enums.redis.order;

/**
 * @Author hq
 * @Date 2025/7/14$ 23:21$
 * @Description TODO
 * @Params $
 * @Return $
 **/
public enum OrderRedisKeyEnum {
   ORDER_STATUS_KEY_PREFIX("order:status:%s"),
    ORDER_DELAY_EXCHANGE("order:delay:exchange");
    private final String keyPattern;
    OrderRedisKeyEnum(String keyPattern) {
        this.keyPattern = keyPattern;
    }

    // 生成具体的键(支持动态参数)
    public String format(Object... args) {
        return String.format(keyPattern, args);
    }
}
